Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
simple-js-ec-math
Advanced tools
this project is intended to make easier and faster crytography projects. it is intended to be very lightweight and thus will not have many dependencies
to create a new curve to do math on:
const g = new ModPoint(
bigInt('16'),
bigInt('5')
)
const curve = new Curve(
bigInt('9'),
bigInt('17'),
bigInt('23'),
bigInt('23'),
g,
)
g is your starting point on the curve with g you can do abstract math instead of 1 + 2 you would add g + 2g as an example
curve.add(<ModPoint>, <ModPoint>)
curve.subtract(<ModPoint>, <ModPoint>)
curve.multiply(<ModPoint>, <scalar>)
// e.g.
curve.multiply(g, 100>)
curve.double(g)
note division is not possible in elliptic curves. this is knows as the "elliptic curve discrete logarithm problem" (ECDLP) and is useful for security practices because it creates 1 way mathematics that are insolvable
const point = curve.multiply(g, 100)
curve.verify(point)
curve.xToY(<x coordinate>, <is odd?>)
curve.xToY('fe973c43d29ce39f940d3186a5a57c98231d59c7cedaa2387d07734777efed80') =>
126044836b26d12486de99ec2754ba7f5835cf83e369533f1d1844adab9b2c2b, ed9fbb7c94d92edb79216613d8ab4580a7ca307c1c96acc0e2e7bb515464d004
curve.xToY('fe973c43d29ce39f940d3186a5a57c98231d59c7cedaa2387d07734777efed80', true) =>
126044836b26d12486de99ec2754ba7f5835cf83e369533f1d1844adab9b2c2b
curve.xToY('8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da', false) =>
662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82
bitcoin address: 1KKiniL7QnMPZZLjgGB2Kq1d7zsjUr6TnS
ethereum address: 0x177b258bD53A8F7d8C609A9277A60A51d1e7e0e0
FAQs
basic elliptic curve math in javascript
The npm package simple-js-ec-math receives a total of 0 weekly downloads. As such, simple-js-ec-math popularity was classified as not popular.
We found that simple-js-ec-math demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.